<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo url::base()?>css_js/all.css" rel="stylesheet" type="text/css" />
<title></title>
<script language="javascript">
	function checkForm(){
		var password = document.getElementById('password').value;
		var new_password = document.getElementById('new_password').value;
		var new_password_confirm = document.getElementById('new_password_confirm').value;
		if(password==""){
			alert("请输入原密码");
			return;
		}
		if(new_password==""){
			alert("请输入新密码");
			return;
		}
		if(new_password_confirm==""){
			alert("请输入确认密码");
			return;
		}
		if(new_password != new_password_confirm){
			alert("两次输入的新密码不一致，请重新输入新密码");
			return;
		}
		document.getElementById("changePasswordForm").submit();
		
	}
</script>
</head>

<body>
    <form id="changePasswordForm" action=<?php echo url::site('boAdmin/changepassword');?> method='post'>
    <table width="99.8%" align="center"  class="searchBar" cellpadding="0" cellspacing="0">
		<tr>
        	
        	<td nowrap="nowrap" width="12%">&emsp;&emsp;原密码:</td>
            <td nowrap="nowrap"><?php echo Form::password('password', '',array('id'=>'password'));?> </td>
		</tr>
		<tr>
        	
        	<td nowrap="nowrap" width="12%">&emsp;&emsp;新密码:</td>
            <td nowrap="nowrap"><?php echo Form::password('new_password', '',array('id'=>'new_password'));?> </td>
		</tr>
		<tr>
        	
        	<td nowrap="nowrap" width="12%">&emsp;&emsp;确认密码:</td>
            <td nowrap="nowrap"><?php echo Form::password('new_password_confirm', '',array('id'=>'new_password_confirm'));?> </td>
		</tr>
		<tr>
			<td></td>
            <td nowrap="nowrap">
            	<input class="buttonBg"  value="保存"type="button" onclick="checkForm()"/>
                &emsp;
            	<input class="buttonBg"  value="重置"type="reset" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
